package com.cw.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author smq
* @since 2021-04-28
*/
@ApiModel(value ="用户角色菜单")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_ROLE_MENU")
public class SysRoleMenu implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @ExcelProperty(value = "ID")
    @TableId("ID")
    private String id;

    @ApiModelProperty(value = "角色ID")
    @ExcelProperty(value = "ROLE_ID")
    @TableField("ROLE_ID")
    private String roleId;

    @ApiModelProperty(value = "菜单ID")
    @ExcelProperty(value = "MENU_ID")
    @TableField("MENU_ID")
    private String menuId;

    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ExcelProperty(value = "DELETE_FLAG")
    @TableField("DELETE_FLAG")
    private String deleteFlag;

    @ApiModelProperty(value = "1管理端 2申报端")
    @ExcelProperty(value = "PORT")
    @TableField("PORT")
    private String port;
}
